-
Notifications
You must be signed in to change notification settings - Fork 1
First implementation #1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall good, needs a few changes.
One other thing, you should add an address getter since you have a setter. |
Change constants to Hungarian notation Move _theBus initializer into header Change changeAddress() to take a `const uint8_t&` Remove under read check, since that will be caught by previous check of err Add address getter
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nothing to add, this looks great Dryw.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code looks great! Nice job :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall looks great.
What I suggested are easy tweaks - for readability and future understanding.
In computing number of addresses, divide by size of elements Check err against OK constant
Thanks all! Library has been published and merged into Arduino's library registry: arduino/library-registry#3782 |
No description provided.